class_name BulletHitEffect
extends Node2D



@onready var sprite: Sprite2D = $Sprite2D
@onready var animation_player: AnimationPlayer = $AnimationPlayer


signal finished


func _ready() -> void:
    animation_player.animation_finished.connect(
        func(anim_name: StringName) -> void:
            if anim_name != "effect": return
            finished.emit()
            # ObjectPool.release_obj(self)
    )


func display() -> void:
    show()
    animation_player.play("effect")


func setup(_data: Dictionary) -> void:
    pass